﻿@model PagedList<MvcMasterPage.Entity.User>
@if (Model != null && Model.Count > 0)
{
    foreach (var item in Model)
    {
    <p>
        <span>@item.Name</span><span>@item.Status</span><span><a href="#" onclick="return qBox.iFrame({src:'@Url.Action("Review", "Common", new
                                         {
                                             objID = item.ID,
                                             objType = MvcMasterPage.Entity.ObjType.User.GetHashCode()
                                         })'})" >评论</a> <a href="@Url.Action("Edit", "Home", new
                                                            {
                                                                id = @item.ID
                                                            })">编辑 </a><a href="@Url.Action("Edit", "Home", new
                                                            {
                                                                id = @item.ID,
                                                                page = 1,
                                                            })">编辑代分页 </a></span>
    </p> 
    <p>
        @if (item.Review != null && item.Review.Count() > 0)
        {
            foreach (var review in item.Review)
            { 
            <p style="background: #eef;">@review.Info</p>
            }
        }
    </p>
    }
    <p>@Html.Pager(Model)</p>
}
